Pragmatic Gradual Polymorphism with References

نویسندگان

چکیده

Abstract Gradualizing System F has been widely discussed. A big challenge is to preserve relational parametricity and/or the gradual guarantee. Most past work focused on preservation of parametricity, but often without few recent works satisfy both properties by giving up syntax, or with some restrictions and introduction sophisticated mechanisms in dynamic semantics. While important for polymorphic languages, most mainstream languages typically do not it, a variety different reasons. In this paper, we explore design space that guarantee, parametricity. When goal, can be considerably simplified. Moreover, it becomes easy add features are practical importance, such as mutable references. We present new gradually typed calculus, called $$\lambda ^{G}_{gpr}$$ λ gpr G , references an proof addition, compared other polymorphism work, defined using Type-Directed Operational Semantics (TDOS), which allows semantics directly instead elaborating target cast language. all proofs paper formalized Coq.

برای دانلود باید عضویت طلایی داشته باشید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Monotonic References for Gradual Typing

We describe an alternative approach to handling mutable references (aka. pointers) within a gradually typed language that has different efficiency characteristics than the prior approach of Herman et al. [2010]. In particular, we hope to reduce the costs of reading and writing through references in statically typed regions of code. We would like the costs to be the same as they would in a stati...

متن کامل

Generating Bilingual Pragmatic Color References

Contextual influences on language exhibit substantial language-independent regularities; for example, we are more verbose in situations that require finer distinctions. However, these regularities are sometimes obscured by semantic and syntactic differences. Using a newlycollected dataset of color reference games in Mandarin Chinese (which we release to the public), we confirm that a variety of...

متن کامل

Monotonic References for Efficient Gradual Typing

Gradual typing enables both static and dynamic typing in the same program and makes it convenient to migrate code regions between the two typing disciplines. One goal of gradual typing is to provide all the benefits of static typing, such as efficiency, in statically-typed regions. However, this goal is elusive: the standard approach to mutable references imposes run-time overhead in statically...

متن کامل

Gradual Uniqueness Effect: A Pragmatic Explanation

Gradual Uniqueness Effect: A Pragmatic Explanation The uniqueness effects in definite noun phrases have been the subject of much debate (Heim 1982, Kadmon 1990, Lyons 1999, Szabó 2000, Roberts 2003). Some claim uniqueness is part of the semantics of the definite article, while others derive it pragmatically. Both sides assume that the uniqueness condition is categorical, and so the only thing t...

متن کامل

An Indexed Model of Impredicative Polymorphism and Mutable References

We present a semantic model of the polymorphic lambda calculus augmented with a higher-order store, allowing the storage of values of any type, including impredicative quantified types, mutable references, recursive types, and functions. Our model provides the first denotational semantics for a type system with updatable references to values of impredicative quantified types. The central idea b...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

ژورنال

عنوان ژورنال: Lecture Notes in Computer Science

سال: 2023

ISSN: ['1611-3349', '0302-9743']

DOI: https://doi.org/10.1007/978-3-031-30044-8_6